<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .bigbox{
        height: 500px;
        width: 700px;
        background-color: skyblue;
        display:block;
    }
    img{
        height: 100%;
        width: 100%;
    }
</style>
<body>
    <div class="bigbox"><img src="C:\Users\zhh2\OneDrive\图片\初音未来 赏月 星空 4k壁纸 3840_2160_彼岸图网_waifu2x_photo_noise3.png">我是广告
        <button id="guanbi"> X </button>
    </div>
    <script>
        const guanbi = document.querySelector('#guanbi')
        const bigbox = document.querySelector('.bigbox')
        guanbi.addEventListener('click',function(){
            bigbox.style.display='none'
        })

    </script>
</body>
</html>